from django.urls import path, re_path
from .views import *

urlpatterns = [
    re_path(r'^register/$', RegisterView.as_view()),
    re_path(r'^username/(?P<username>[a-zA-Z0-9_-]{3,20})/count/$', UsernameCountView.as_view()),
    re_path(r'^mobile/(?P<mobile>1[3578]\d{9})/count/$', MobileCountView.as_view()),
    re_path(r'^image_code/(?P<uuid>\d*)$', ImageCodeView.as_view()),
    re_path(r'^sms_code/(?P<mobile>1[3578]\d{9})/image_code/(?P<uuid>\d*)$', SmsCodeView.as_view()),
    re_path(r'^check_image_code/(?P<image_code>.*)/uuid/(?P<uuid>\d*)$', CheckImageCodeView.as_view()),
    re_path(r'^check_sms_code/(?P<sms_code>.*)/mobile/(?P<mobile>\d*)$', CheckSmsCodeView.as_view()),
]
